package com.hlkj.pay.vo.common.req;
import java.util.List;
import java.util.Set;

import com.hlkj.framework.common.pojo.PageParam;
import com.hlkj.framework.common.valid.EnumValid;
import com.hlkj.pay.enums.CommonEnum;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author monk@techsun.com
 * @date 2023/04/21 14:10
 */
@Data
public class TemplatePageReq extends PageParam {

    private static final long serialVersionUID = -7310234882220596200L;

    @Schema(description = "模板名称")
    private String templateName;
    @Schema(description = "templateCodes")
    private List<String> templateCodes;

    @Schema(description = "消息类型：0-国内短信，1-国际/港澳台短息，2-邮件，3-微信")
    @EnumValid(value = CommonEnum.TEMPLATE_TYPE.class,message = "消息类型无效")
    private Integer templateType;
    
    @Schema(description = "消息类型：0-国内短信，1-国际/港澳台短息，2-邮件，3-微信")
    private Set<Integer> templateTypes;

    @Schema(description = "业务类型：1- 营销类，2-通知类，3-验证码")
    @EnumValid(value = CommonEnum.BUSINESS_TYPE.class,message = "业务类型无效")
    private Integer businessType;

    @Schema(description = "状态：0-草稿；1-已上架；2-已下架；3-审批通过；4-驳回")
    @EnumValid(value = CommonEnum.TEMPLATE_STATUS.class,message = "状态无效")
    private Integer status;
    @Schema(description = "startTime")
    private String startTime;
    @Schema(description = "endTime")
    private String endTime;
}
